/*
 *  Copyright (c) 2012 Brandon Ellenberger
 *
 *  This file is part of OpSatPlan.
 *
 *  OpSatPlan is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  OpSatPlan is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with OpSatPlan.  If not, see <http://www.gnu.org/licenses/>.
 */

namespace OpSatPlan.LexerParser
{
    class Position
    {
        public static int sLineNumber = 1;
        public static int sColumnNumber = 1;
        public static int sLine = 1;
        public static int sColumn = 1;
        public static void setPosition()
        {
            sLineNumber = sLine;
            sColumnNumber = sColumn;
        }
        public static void reset()
        {
            sLineNumber = 1;
            sColumnNumber = 1;
            sLine = 1;
            sColumn = 1;
        }
        public static int LineNumber
        {
            get
            {
                return Position.sLineNumber;
            }
        }
        public static int Line
        {
            get
            {
                return Position.sLine;
            }
            set
            {
                Position.sLine = value;
            }
        }
        public static int ColumnNumber
        {
            get
            {
                return Position.sColumnNumber;
            }
        }
        public static int Column
        {
            get
            {
                return Position.sColumn;
            }
            set
            {
                Position.sColumn = value;
            }
        }
    }
}